package game_engine.display;

import java.awt.Font;
import java.util.HashMap;

import org.newdawn.slick.TrueTypeFont;

public class FontLoader {
	
	private HashMap<String, TrueTypeFont> table;
	
	public FontLoader() {
		table = new HashMap<String, TrueTypeFont>();
	}
	
	public void addFont(String id, String fontName, int fontSize) {
		table.put(id, new TrueTypeFont(new Font(fontName, 0, fontSize), false));
	}
	
	public TrueTypeFont getFont(String name) {
		return table.get(name);
	}

}
